package base.hex;

import org.apache.commons.codec.binary.Hex;

import java.util.Base64;

public class HexTest2 {
    public static void main(String[] args) {
        String hexCode = "0xff03B004";


        System.out.println(new String(Base64.getEncoder().encode(hexCode.getBytes())));

        System.out.println(Hex.encodeHexString(hexCode.getBytes()));

        System.out.println(new String(Base64.getEncoder().encode(hexCode.getBytes())));
    }
}
